<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('新增客户管理')" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-customer-add">
        	<div class="form-group">    
                <label class="col-sm-3 control-label is-required">单位名称：</label>
                <div class="col-sm-8">
                    <input name="ckdw" class="form-control" type="text" autoComplete="off" required>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label ">纳税识别号：</label>
                <div class="col-sm-8">
                    <input name="nssbh" class="form-control" type="text" autoComplete="off" >
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label ">开户银行：</label>
                <div class="col-sm-8">
                    <input name="khyh" class="form-control" type="text" autoComplete="off" >
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label ">账号信息：</label>
                <div class="col-sm-8">
                    <input name="skzh" class="form-control" type="text" autoComplete="off" >
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">单位地址：</label>
                <div class="col-sm-8">
                    <input name="address" class="form-control" type="text" autoComplete="off" required>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">联系人电话：</label>
                <div class="col-sm-8">
                    <input name="phone" class="form-control" type="text" autoComplete="off" required>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">客户联系人：</label>
                <div class="col-sm-8">
                    <input name="person" class="form-control" type="text" autoComplete="off" required>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">对接部门：</label>
                <div class="col-sm-8">
                    <input name="deptName" class="form-control" type="text" th:value="${deptName}" autoComplete="off" readonly="readonly" required>
                    <input name="deptId" th:value="${deptId}" type="hidden">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">对接人：</label>
                <div class="col-sm-8">
                    <input name="owner" class="form-control" th:value="${owner}" readonly="readonly" type="text" autoComplete="off" required>
                	<input name="ownerId" th:value="${ownerId}" type="hidden">
                </div>
            </div>
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <script th:inline="javascript">
        var prefix = ctx + "yy/customer"
        $("#form-customer-add").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/add", $('#form-customer-add').serialize());
            }
        }

    </script>
</body>
</html>